package com.cqc.customdialog;

import android.app.DatePickerDialog;
import android.content.Context;
import android.util.Log;

/**
 * Title: MyDatePickerDialog Description: 时间dialog company: 上海双至
 *
 * @author Shawn
 * @date 2015年12月4日 上午10:30:59
 */

public class MyDatePickerDialog extends DatePickerDialog {

    private static final String TAG = "MainActivity2";

    public MyDatePickerDialog(Context context, int theme, OnDateSetListener listener, int year, int monthOfYear,
                              int dayOfMonth) {
        super(context, theme, listener, year, monthOfYear, dayOfMonth);
        // TODO Auto-generated constructor stub
    }

    public MyDatePickerDialog(Context context, OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth) {
        super(context, callBack, year, monthOfYear, dayOfMonth);
        this.setTitle("选择预计到达收货工厂时间！");
        this.setButton(DatePickerDialog.BUTTON_POSITIVE, "选择时间", this);
        this.setButton(DatePickerDialog.BUTTON_NEGATIVE, "", this);
        setCancelable(false);
        Log.d(TAG, "MyDatePickerDialog--year=" + year + ",month=" + monthOfYear + ",dayOfMonth=" + dayOfMonth);
        Log.d(TAG, "MyDatePickerDialog--year=" + String.valueOf(year) + ",month=" + String.valueOf(monthOfYear) + ",dayOfMonth=" + String.valueOf(dayOfMonth));
    }
}
